﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Doma.aspx.cs" Inherits="Doma" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Почетна</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
            border-style: solid;
            border-width: 1px;
        }
        .style2
        {
            width: 145px;
        }
    </style>
    </head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:Panel ID="pnlGlaven" runat="server">
        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
        <asp:Panel ID="Panel2" runat="server" style="text-align: center"  BorderStyle="Outset" 
            HorizontalAlign="Center" Height="250">
            <asp:Image ID="Image1" runat="server" ImageAlign="Middle" Height="220" ImageUrl="~/Sliki/shopping-cart11.jpg" />
            <asp:Panel ID="PNaslov" runat="server">
             <asp:Label ID="lblNaslov" runat="server" Font-Bold="True" ForeColor="Red" Font-Size="X-Large"></asp:Label>
            </asp:Panel>
           
        </asp:Panel>
        </asp:Panel>
       <div style="text-align: center; width: 921px; margin-left: 450px;">
        <asp:Menu ID="Menu2" runat="server" BackColor="#F7F6F3" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="1 em" 
            ForeColor="#7C6F57" Orientation="Horizontal" StaticSubMenuIndent="10px" 
               onmenuitemclick="Menu2_MenuItemClick">
            <DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicMenuStyle BackColor="#F7F6F3" />
            <DynamicSelectedStyle BackColor="#5D7B9D" />
            <Items>
                <asp:MenuItem Text="Дома" Value="Дома" NavigateUrl="~/Doma.aspx"></asp:MenuItem>
                <asp:MenuItem Text="Облека за мажи" Value="Облека за мажи" 
                    NavigateUrl="~/za_mazi.aspx" Selectable="False">
                    <asp:MenuItem Text="Маици" Value="Маици"></asp:MenuItem>
                    <asp:MenuItem Text="Патики" Value="Патики"></asp:MenuItem>
                    <asp:MenuItem Text="Панталони" Value="Панталони"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Облека за жени" Value="Облека за жени" 
                    NavigateUrl="~/za_zeni.aspx" Selectable="False">
                    <asp:MenuItem Text="Фустани" Value="Фустани"></asp:MenuItem>
                    <asp:MenuItem Text="Штикли" Value="Штикли"></asp:MenuItem>
                    <asp:MenuItem Text="Капи" Value="Капи"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Инфо" Value="Инфо" NavigateUrl="~/Info.aspx"></asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#7C6F57" ForeColor="White" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticSelectedStyle BackColor="#5D7B9D" />
        </asp:Menu></div>
    
    </asp:Panel>
        <asp:Label ID="lblKorisnik" runat="server"></asp:Label>
&nbsp;<asp:Button ID="btnLogiranje" runat="server" onclick="btnLogiranje_Click" 
            Text="Логирај се" Visible="False" />
        &nbsp;<asp:Button ID="btnOdlogiranje" runat="server" Text="Одлогирај се" 
            Visible="False" onclick="btnOdlogiranje_Click" />
        <br />
        <br />
         <table align="center" class="style1">
            <tr>
                <td align="center" height="250" width="250">
                    <asp:Image ID="imgMaica" runat="server" />
                </td>
                <td class="style2" align="center" height="250" width="250">
                    <asp:Image ID="imgPatiki" runat="server" />
                </td>
                <td align="center" height="250" width="250">
                    <asp:Image ID="imgPantaloni" runat="server" />
                </td>
            </tr>

             <tr>
                <td align="center">
               <h2> Цена:     <asp:Label ID="lblMaica" runat="server"></asp:Label></h2>
                </td>
                <td class="style2" align="center">
              <h2> Цена:      <asp:Label ID="lblPatiki" runat="server"></asp:Label></h2>
                </td>
                <td align="center">
             <h2> Цена:       <asp:Label ID="lblPantaloni" runat="server"></asp:Label></h2>
                </td>
            </tr>

            <tr>
                <td align="center" height="250" width="250">
                    <asp:Image ID="imgFustan" runat="server" />
                </td>
                <td align="center" height="250" width="250">
                    <asp:Image ID="imgStikli" runat="server" />
                </td>
                <td align="center" height="250" width="250">
                    <asp:Image ID="imgKapi" runat="server" />
                </td>
            </tr>

            <tr>
                <td align="center">
                  <h2> Цена:    <asp:Label ID="lblFustan" runat="server"></asp:Label> </h2>
                </td>
                <td align="center">
                  <h2> Цена:    <asp:Label ID="lblStikli" runat="server"></asp:Label></h2>
                </td>
                <td align="center">
                 <h2>  Цена:    <asp:Label ID="lblKapa" runat="server"></asp:Label></h2>
                </td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="gvMaici" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="sifra" DataSourceID="Maici" Visible="False">
            <Columns>
                <asp:BoundField DataField="sifra" HeaderText="sifra" ReadOnly="True" 
                    SortExpression="sifra" />
                <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
                <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
                <asp:BoundField DataField="slika" HeaderText="slika" SortExpression="slika" />
                <asp:BoundField DataField="kolicina" HeaderText="kolicina" 
                    SortExpression="kolicina" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="Maici" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT * FROM [Za_maski]"></asp:SqlDataSource>
        <br />
    </div>
    <asp:GridView ID="gvPatiki" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="sifra" DataSourceID="patiki" Visible="False">
        <Columns>
            <asp:BoundField DataField="sifra" HeaderText="sifra" ReadOnly="True" 
                SortExpression="sifra" />
            <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
            <asp:BoundField DataField="slika" HeaderText="slika" SortExpression="slika" />
            <asp:BoundField DataField="kolicina" HeaderText="kolicina" 
                SortExpression="kolicina" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="patiki" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Odela]"></asp:SqlDataSource>
    <br />
    <asp:GridView ID="gvPantaloni" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="sifra" DataSourceID="pantaloni" Visible="False">
        <Columns>
            <asp:BoundField DataField="sifra" HeaderText="sifra" ReadOnly="True" 
                SortExpression="sifra" />
            <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
            <asp:BoundField DataField="slika" HeaderText="slika" SortExpression="slika" />
            <asp:BoundField DataField="kolicina" HeaderText="kolicina" 
                SortExpression="kolicina" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="pantaloni" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Kosuli]">
    </asp:SqlDataSource>
    <br />
    <asp:GridView ID="gvFustan" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="sifra" DataSourceID="Fustani" Visible="False">
        <Columns>
            <asp:BoundField DataField="sifra" HeaderText="sifra" ReadOnly="True" 
                SortExpression="sifra" />
            <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
            <asp:BoundField DataField="slika" HeaderText="slika" SortExpression="slika" />
            <asp:BoundField DataField="kolicina" HeaderText="kolicina" 
                SortExpression="kolicina" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="Fustani" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Za_zenski]"></asp:SqlDataSource>
    <br />
    <asp:GridView ID="gvStikli" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="sifra" DataSourceID="stikli" Visible="False">
        <Columns>
            <asp:BoundField DataField="sifra" HeaderText="sifra" ReadOnly="True" 
                SortExpression="sifra" />
            <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
            <asp:BoundField DataField="slika" HeaderText="slika" SortExpression="slika" />
            <asp:BoundField DataField="kolicina" HeaderText="kolicina" 
                SortExpression="kolicina" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="stikli" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Stikli]"></asp:SqlDataSource>
    <br />
    <asp:GridView ID="gvKapi" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="sifra" DataSourceID="Kapi" Visible="False">
        <Columns>
            <asp:BoundField DataField="sifra" HeaderText="sifra" ReadOnly="True" 
                SortExpression="sifra" />
            <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
            <asp:BoundField DataField="slika" HeaderText="slika" SortExpression="slika" />
            <asp:BoundField DataField="kolicina" HeaderText="kolicina" 
                SortExpression="kolicina" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="Kapi" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Pantaloni]"></asp:SqlDataSource>
    </form>
</body>
</html>
